package com.web.wechat;

import com.blue.http.HttpServer;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class WechatMain
{
	private static String[] springs = {"spring/dao.xml", "spring/http.xml", "spring/redis.xml", "spring/spring.xml"};
	
	public WechatMain()
	{
	}
	
	public static void main(String[] args) throws Exception
	{
		long start = System.currentTimeMillis();
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(springs);
		HttpServer httpServer = ctx.getBean(HttpServer.class);
		httpServer.start(start);
		ctx.close();
	}
	
	
}
